/******************************************************************************
 * The contents of this file are subject to the   JDI License  Version 1.0
 * ("License"); You may not use this file except in compliance with the License
 * Software distributed under the License is distributed on an  "AS IS"  basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
 * the specific language governing rights and limitations under the License.
 * The Initial Developer of the Original Code is 陈慧然. Portions created by 
 * 陈慧然 are Copyright 陈慧然.
 * All Rights Reserved.
 *
 *              Contact john_holen@163.com for licensing alternatives.
 *
 *****************************************************************************/


package org.peony.standard.db.operation;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import javax.sql.XAConnection;

import org.peony.exceptions.DataBaseOperationException;

/**
 *  
 *
 *  @author     陈慧然
 *  @version    Id: SIJTADatabaseOperation.java, v 0.000 2008-7-22 上午11:35:01 陈慧然 Exp
 */
public interface SIJTADatabaseOperation {

	public boolean setConnection(XAConnection conn);
	public int insert(Map map) throws DataBaseOperationException;
	public int update(Map map) throws DataBaseOperationException;
	public int delete(Map map) throws DataBaseOperationException;
	public List<Map> queryForList(Map map) throws DataBaseOperationException;
	public Object queryForObject(Map map) throws DataBaseOperationException;
	public String queryForString(Map map) throws DataBaseOperationException;
	public BigDecimal queryForNumber(Map map) throws DataBaseOperationException;
	public java.sql.Date queryForDate(Map map) throws DataBaseOperationException;
	
}
